$(function(){

                // Accordion
                $("#accordion").accordion(
                    { header: "h3" }, 
                    { collapsible: true, active: false }, 
                    { icons: { "header": "ui-icon-plus", "headerSelected": "ui-icon-minus" } }
                );
                        
                //Nivo slider
                $(window).load(function() {
                    $('#slider').nivoSlider({
                        effect: 'sliceDown',
                        pauseTime: 6000,
                        slices: 20
                    });
                });
                
                //MegaMenu
                $(".mega-menu").dcMegaMenu({
                    rowItems: '4',
                    speed: 'fast',
                    effect: 'fade'
                });
                
                // Easy confirm
                $(".confirm").easyconfirm({locale: $.easyconfirm.locales.itIT});
                $("#alert").click(function() {
                    alert("Hai approvato l'azione");
                });
                
                // Tinymce
                tinyMCE.init({
                    theme : "simple",
                    mode : "textareas"
                    // styles of the WYSIWYG content
                    //content_css : "/css/tiny_mce.css"
                    });
            }
);
